package com.study.custom.mybatis;

import com.study.mapper.UserMapper;

import java.util.List;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/12/23 21:10
 */
public interface SqlSession {

    <T> T getMapper(Class<T> clazz);

    void close();

    /***
     * 集合查询
     * @param <E>
     * @return
     */
    <E> List<E> selectList(String statement);

    <E> E selectOne(String statement, Object[] args);
}
